var windowOpen = false;
var window1;
function MM_openBrWindow(theURL,winName,features) { //v2.0
   if (windowOpen == false)
        {
		windowOpen = true;
	   	window1=window.open(theURL,winName,features);
		}
   else if (windowOpen == true)
       	{
        window1.close();
		windowOpen = true;   
	  	window1=window.open(theURL,winName,features);
		} 
}//-->


function menu( id)
{
	if(document.getElementById(id).style.display=='none')
	{
		document.getElementById(id).style.display='block'; 
	}
	else
	{
		document.getElementById(id).style.display='none'; 
		
	}
}

function getCombo(pid, id, mid)
{
	var StrValue = {"pid":pid , "langid":id , "mid":mid};
	$.post("combo.php", StrValue ,
	function(data){
		$('.loadCombo').html(data);
	});
	
	
	$.post("realestate.php", StrValue ,
	function(data){
		$('#loadComboReal').html(data);
	});
}



function sendValue(str, id){
				//$.post("ajax.php",{ "sendValue": str },
				/*function(data){
					$('#quote p').html(data.returnValue);
				}, "json");*/
				
				var StrValue = {"pid":str, "langid":id};
				$.post("ajax.php", StrValue ,
			   	function(data){
					//$('#quote p').html(data.returnValue);
					$('#display').html(data);
				});
			}